2020-2021 Sunseeker Telemetry and Lighting System
timer_a_ex2_continousModeOperationWithCCR0Interrupt.c File Reference
#include "driverlib.h"

Go to the source code of this file.

Macros

#define COMPARE_VALUE   50000
 

Functions

void main (void)
 
void TIMER1_A0_ISR (void)
 

Macro Definition Documentation

◆ COMPARE_VALUE

#define COMPARE_VALUE   50000

TIMER_A, Toggle P1.0, CCR0 Cont. Mode ISR, DCO SMCLK

Toggle P1.0 using software and TA_0 ISR. Toggles every 50000 SMCLK cycles. SMCLK provides clock source for TACLK. During the TA_0 ISR, P1.0 is toggled and 50000 clock cycles are added to CCR0. TA_0 ISR is triggered every 50000 cycles. CPU is normally off and used only during TA_ISR. ACLK = n/a, MCLK = SMCLK = TACLK = default DCO ~1.045MHz

Tested On: MSP430F5529,MSP430FR5739

/ |
RST

| | | P1.0|-->LED

This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:

  • TimerA peripheral
  • GPIO peripheral

This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.

  • Timer A0

Definition at line 64 of file timer_a_ex2_continousModeOperationWithCCR0Interrupt.c.

Function Documentation

◆ main()

void main ( void  )

◆ TIMER1_A0_ISR()

void TIMER1_A0_ISR ( void  )